<!--
 * @Author: ljc
 * @Date: 2024-08-06 13:36:29
 * @LastEditors: g05047
 * @LastEditTime: 2024-11-25 15:03:24
 * @Description:  区划和单位标题
-->
<template>
  <template v-if="treeType==='ad'">
    <el-form-item :label="i18nt('designer.setting.adLabel')"
      v-if="!noLabelSetting">
      <el-input type="text"
        v-model="optionModel.adConfig.adLabel"></el-input>
    </el-form-item>
  </template>
  <template v-else>
    <el-form-item :label="i18nt('designer.setting.agLabel')"
      v-if="!noLabelSetting">
      <el-input type="text"
        v-model="optionModel.agConfig.agLabel"></el-input>
    </el-form-item>
  </template>
</template>
  <script>
import i18n from "@/utils/i18n"
export default {
  name: "treeLabel-editor",
  mixins: [i18n],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    treeType: String
  },
  computed: {
    noLabelSetting() {
      return (this.selectedWidget.type === 'static-text') || (this.selectedWidget.type === 'html-text')
    },
  }
}
  </script>
  <style lang="scss" scoped>
</style>
  